package com.aaa.dao;

import com.aaa.pojo.BankType;
import org.apache.catalina.LifecycleState;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface BankTypeDao {
    //根据id查询银行卡类型
    @Select("select * from bank_type where tid=#{tid}")
    BankType selByTid(Integer tid);

    //查询所有银行卡类型
    @Select("select * from bank_type")
    List<BankType> selBankType();
}
